package com.antu.first.bean;

/**
 * This is the entity of Area
 * Created by Coder on 2018/3/3.
 */
public class Area {

    private int aId;//Id

    private String aName;//区域名称

    private Area parent;//区域父级

    public Area() {
    }

    public Area(int aId, String aName, Area parent) {

        this.aId = aId;
        this.aName = aName;
        this.parent = parent;
    }

    public void setaId(int aId) {

        this.aId = aId;
    }

    public void setaName(String aName) {
        this.aName = aName;
    }

    public void setParent(Area parent) {
        this.parent = parent;
    }

    public int getaId() {

        return aId;
    }

    public String getaName() {
        return aName;
    }

    public Area getParent() {
        return parent;
    }

    @Override
    public String toString() {
        return "Area{" +
                "aId=" + aId +
                ", aName='" + aName + '\'' +
                ", parent=" + parent +
                '}';
    }
}
